﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VTLive.Models.StationManagementModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Manage
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Manage <%= Html.Encode(Model.station.Name)%></h2>
    
    <%= Html.ActionLink("Add Associate", "Associations", new{id = Model.station.ID })%>
    <%= Html.ActionLink("Add Schedule","Add","Schedule", new{ id = Model.station.ID },null)%>
    
    <%if (Model.schedules.Count() != 0)
      { %>
    <table>
        <tr>
            <th></th>
            <th>
                Date
            </th>
        </tr>
        
            <%foreach (VTLive.Models.Schedule s in Model.schedules)
              { %>
              <tr>
                <td>
                    <%= Html.ActionLink("Add to Schedule", "Edit", "Schedule", new {id = s.ID }, null)%>
                </td>
                <td>
                    <%=Html.Encode(s.StartTime)%>
                </td>
              </tr>
            <%} %>
    </table>
    <% } %>
</asp:Content>
